import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加寝室等级
export function addBedroomType(data) {
    return request({
        url: baseUrl + '/pc/bedroom-type',
        method: 'post',
        data
    })
}

// 查询寝室等级
export function getBedroomType(data) {
    return request({
        url: baseUrl + '/pc/bedroom-type',
        method: 'get',
        params: data
    })
}

// 更新寝室等级
export function updateBedroomType(data) {
    return request({
        url: baseUrl + '/pc/bedroom-type',
        method: 'put',
        data
    })
}

// 删除寝室等级
export function deleteBedroomType(data) {
    return request({
        url: baseUrl + '/pc/bedroom-type',
        method: 'delete',
        data
    })
}
